package com.link.base.core.deploy;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 *
 * 部署用Controller，提供部署用的rest接口
 * Created by 赵世光 on 2019/3/5.
 */

@Controller
public class DeployController {


    /**
     * 服务下线接口，该接口能使本服务从 eureka 端下线。通过调用本接口后，再停止应用进行安全停机
     */
    @RequestMapping(value = "/microservice/offline", method = RequestMethod.GET)
    @ResponseBody
    public void offline() {
        /*DiscoveryManager.getInstance().shutdownComponent();*/
    }





}
